/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import javax.servlet.http.HttpSession;

/**
 *
 * @author gabrielbmoro
 */
public class Usuario {

    private String login;
    private String senha;
    
    public Usuario(String login, String senha){
        this.login= login;
        this.senha= senha;
    }

    public void acessarSistema(HttpSession httpSession){
        if(this.login.equals("administradorCreas")&& this.senha.equals("123")){
            httpSession.setAttribute("usuarioLogado", true);
        }else{
            httpSession.setAttribute("usuarioLogado", false);
        }
    }
    
    public String getLogin() {
        return login;
    }

    public void setLogin(String login) {
        this.login = login;
    }

    public String getSenha() {
        return senha;
    }

    public void setSenha(String senha) {
        this.senha = senha;
    }
    
    
}

